package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.system.Role;
import com.marktotop.vo.system.RoleVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 分页展示角色列表
     *
     * @param page
     * @param roleVO
     * @return
     */
    IPage<RoleVO> getRolesByPage(Page<RoleVO> page, @Param("roleVO") RoleVO roleVO);
}
